package com.share.service.baseServiceSupport.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.share.hibernate.baseDaoSupport.BaseDao;
import com.share.service.baseServiceSupport.BaseService;

public class BaseServiceSupport<T extends Serializable> implements BaseService<T> {
	@Autowired private BaseDao<T> baseDao;
	@Override
	public String save(T paramT) {
		return baseDao.save(paramT);
	}

	@Override
	public String update(T paramT) {
		// TODO Auto-generated method stub
		return baseDao.update(paramT);
	}

	@Override
	public String delete(T paramT) {
		// TODO Auto-generated method stub
		return baseDao.delete(paramT);
	}

	@Override
	public T getById(String paramInteger) {
		// TODO Auto-generated method stub
		return baseDao.getById(paramInteger);
	}

	@Override
	public List<T> find() {
		// TODO Auto-generated method stub
		return baseDao.find();
	}

}
